<template>
	<view id="myview">
		<view>
			<view>
				<text class="iconfont icon-xiangzuojiantou"></text><text>{{biaoti}}</text>
			</view>
		</view>
		<view id="title">
			<text>{{biaoti}}</text>
		</view>
		<view id="qingbaozhan">
			<text>医疗情报站</text><text>1小时前</text>
		</view>
		<view id="wenben">
			<text>{{fx_xiangqing}}</text>
		</view>
	</view>
</template>

<script>
	import {ref,reactive,toRefs,onMounted} from 'vue'
	import http from '../../utils/http.js'
	import store from '../../store/index.js'
	export default {
		setup(){
			let data=reactive({
				arrindex:0,
				alldata:[],
				biaoti:'',
				fx_xiangqing:''
			})
			onMounted(()=>{
				data.alldata=store.state.foundMessage
				data.arrindex=store.state.xiabiao
				data.biaoti=data.alldata[data.arrindex].fx_biaoti
				data.fx_xiangqing=data.alldata[data.arrindex].fx_xiangqing
			})
			
			return{...toRefs(data)}
		}
	}
</script>

<style lang="less">
@import url("~@/static/fonts/iconfont.css");
	#myview>view:nth-child(1){
		width: 750rpx;
		height: 100rpx;
		line-height: 100rpx;
		border-bottom: 1px solid #f2f2f2;
		padding: 0 20rpx;
		box-sizing: border-box;
		>view:nth-child(1){
			width:750rpx;
			height: 80rpx;
		}
	}
	#title{
		width: 750rpx;
		height: 130rpx;
		padding: 0 80rpx;
		box-sizing: border-box;
		line-height:130rpx;
		font-size: 45rpx;
	}
	#qingbaozhan{
		width: 750rpx;
		height: 60rpx;
		box-sizing: border-box;
		line-height:60rpx;
		color:rgb(153,153,153);
		font-size: 30rpx;
		>text:nth-child(1){
			padding-left: 20rpx;
		}
		>text:nth-child(2){
			padding-left: 30rpx;
		}
	}
	#wenben{
		margin-top: 30rpx;
		width: 750rpx;
		padding: 0 30rpx;
		line-height:60rpx;
		box-sizing: border-box;
		color: #3f3f3f;
		font-size: 35rpx;
	}
</style>
